package com.crane.oss.school.bean.request.task;

import java.util.Date;

import javax.validation.constraints.NotNull;

import com.crane.common.core.dto.PageQuery;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @Author: zx
 * @Date: 2023/01/23/19:43
 * @Description:
 */
@ApiModel(description = "查询排行榜数据")
@Getter
@Setter
@ToString
public class QueryRankReq extends PageQuery {

	private static final long serialVersionUID = -5046485345724912585L;

	@ApiModelProperty(value = "时间：1今日,2本周,3本月,4本年", name = "time")
	@NotNull(message = "请选择排名时间")
    private Integer time;
	
	@ApiModelProperty(value = "类型：1:1分钟跳绳,2:跳绳总数", name = "type")
	@NotNull(message = "请选择排名类型")
	private Integer type;

    @ApiModelProperty(value = "学生id", name = "studentId")
    @NotNull(message = "学生id不能为空")
    private Long studentId;
    
    @ApiModelProperty(value = "开始时间", name = "startTime", hidden = true)
    private Date startTime;
    
    @ApiModelProperty(value = "开始时间", name = "endTime", hidden = true)
    private Date endTime;

    @ApiModelProperty(value = "排名上限", name = "upperLimit", hidden = true)
    private Integer upperLimit;

}
